package com.woniu.cq.medical.service;

import com.woniu.cq.medical.entity.Informed;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Lucas
 * @since 2020-09-09
 */
public interface InformedService extends IService<Informed> {
    /**
     * 文件上传
     * @param file
     */
    void uploadInformed(MultipartFile file,String uploadname) throws IOException;

    /**
     * 插入一张同意书
     */
    void insertInformed(String filename,String url);

    /**
     * 查询所有的知情书
     * @return
     */
    List<Informed> selectAllInformed();
}
